package com.liyy.platform.other.mytest;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class TestDate
{
	public static void main(String [] args){
		
		 Timestamp ts=Timestamp.valueOf("1999-11-12 10:11:12");
		 SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日 hh:mm:ss ");
/*		 Date d =new Date();
 		 Calendar c = Calendar.getInstance();
		 c.setTime(d);
		 System.out.println(c.get(Calendar.MONTH)+1);*/
		 System.out.println(sdf.format(ts));
		 System.out.println(sdf.format(new Date()));
	}
}